﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<WROA.Models.ViewModels.FlowProcedureView>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>FlowProcedure新建流程步骤</title>
    <link href="../../Content/Global.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="all">



<!--标题开始-->
<div id="titleOut">
    <div id="titleInner">
        新建流程
    </div>
</div>
<!--标题结束-->




<form id="Form" runat="server">
<!--申请内容开始-->
<div id="ContentOut">
    <table id="ContentInner" class="tableInner" cellpadding="0" cellspacing="0">
        <tr class="head">
            <td>流程名称</td>
            <td>职员请假申请</td>
        </tr>
        <tr>
            <td>步骤名称</td>
            <td><input id="ProcedureName" name="ProcedureName" type="text"  class="button" value="<%= Model.procedure.Pr_name??"" %>" /></td>
        </tr>
        <tr>
            <td>步骤数</td>
            <td>
                第<%= ViewData["Step"] %>步
                <input type="hidden" id="Step" name="Step" value="<%= ViewData["Step"] %>"  />
            </td>
        </tr>
        <tr>
            <td>步骤要述</td>
            <td><textarea id="ProcedureRemark" name="ProcedureRemark"><%= Model.procedure.Pr_remark ?? "" %></textarea></td>
        </tr>
        <tr>
            <td>审批类型</td>
            <td>
                <%=Html.DropDownList("ProcedureType", Model.typeList ,Model.procedure.Pr_type??"请选择")%>
            </td>
        </tr>
        <tr>
            <td>审批人名字</td>
            <td><input id="ProcedureTypeValue" name="ProcedureTypeValue"  type="text" class="text" value="<%= Model.procedure.Pr_typevalue ?? "" %>" /></td>
        </tr>
    </table>
</div>
<script type="text/javascript">
    var MaterialInner = document.getElementById("ContentInner");
    var trs = MaterialInner.getElementsByTagName("tr");

    for (var i = 1; i < trs.length; i++) {
        if (i % 2 != 0) {
            trs[i].className = "a1";
        } else {
            trs[i].className = "a2";
        }
    }

    function Back() {
        document.getElementById("Form").action = "/Flow/BackFlowProcedure";
        document.getElementById("Form").submit();
    }

    function Next() {
        document.getElementById("Form").action = "/Flow/NextFlowProcedure";
        document.getElementById("Form").submit();
    }

    function Finish() {
        document.getElementById("Form").action = "/Flow/NewFlowSuccess";
        document.getElementById("Form").submit();
    }
</script>
<!--申请内容结束-->




<!--操作开始-->
<div id="dealOutBottom" class="dealOut">
    <div id="dealInnerBottom" class="dealInner">
        <input id="btnBack" type="button" value="上一步" class="button" onclick="Back();" />
        <input id="btnNext" type="button" value="下一步" class="button" onclick="Next();" />
        <input id="btnFinish" type="button" value="完成设计" class="button" onclick="Finish();" />
        <input id="btnCancel" type="button" value="取消设计" class="button" onclick="" />
        <input id="btnDelete" type="button" value="删除" class="button" />
    </div>
</div>
<!--操作结束-->
</form>

</div>
</body>
</html>
